package com.lavender.account.service.service;

import com.lavender.account.service.entity.Account;

import java.math.BigDecimal;

/**
 * @author: zhu.chen
 * @date: 2020/11/24
 * @version: v1.0.0
 */
public interface IAccountService {

    /**
     * <p>
     * 扣减userId账户num金额
     * </p>
     *
     * @param userId
     * @param num
     */
    void debit(String userId, BigDecimal num);

    /**
     * <p>
     * 插入数据
     * </p>
     *
     * @param account
     */
    void insert(Account account);

}
